﻿<UserControl x:Class="SilverlightHtmlTextBlock.Page"
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SilverlightHtmlTextBlock;assembly=HtmlTextBlock">
    <Canvas>
        <TextBlock Text="With Silverlight's TextBlock:" FontFamily="Verdana" FontSize="13" />
        <Canvas Canvas.Top="17" Clip="M 0,0 H 600 V 115 H -600 V -115 Z">
            <Rectangle Width="600" Height="115" Stroke="Gray" />
            <TextBlock x:Name="textBlock" Canvas.Left="2" Canvas.Top="2" Width="596" Height="111" TextWrapping="Wrap" />
        </Canvas>

        <TextBlock Canvas.Top="155" Text="With custom HtmlTextBlock control:" FontFamily="Verdana" FontSize="13" />
        <Canvas Canvas.Top="172" Clip="M 0,0 H 600 V 115 H -600 V -115 Z">
            <Rectangle Width="600" Height="115" Stroke="Gray" />
            <local:HtmlTextBlock x:Name="htmlTextBlock" Canvas.Left="2" Canvas.Top="2" Width="596" Height="111" TextWrapping="Wrap" UseDomAsParser="true" />
        </Canvas>
    </Canvas>
</UserControl>
